home *** CD-ROM | disk | FTP | other *** search
- /xlv1/freeware/1998.May/sh-utils/1.16b/sh-utils-1.16b.diffbuild/man
-
-
-
- TTTTEEEESSSSTTTT((((1111)))) FFFFSSSSFFFF ((((GGGGNNNNUUUU SSSShhhheeeellllllll UUUUttttiiiilllliiiittttiiiieeeessss)))) TTTTEEEESSSSTTTT((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- test - check file types and compare values
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- tttteeeesssstttt [expr]
- tttteeeesssstttt {--help,--version}
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This documentation is no longer being maintained and may be
- inaccurate or incomplete. The Texinfo documentation is now
- the authoritative source.
-
- This manual page documents the GNU version of tttteeeesssstttt. Note
- that most shells have a built-in command by the same name
- and with similar functionality.
-
- tttteeeesssstttt returns a status of 0 (true) or 1 (false) depending on
- the evaluation of the conditional expression _e_x_p_r.
- Expressions may be unary or binary. Unary expressions are
- often used to examine the status of a file. There are
- string operators and numeric comparison operators as well.
-
- ----bbbb _f_i_l_e
- True if _f_i_l_e exists and is block special.
- ----cccc _f_i_l_e
- True if _f_i_l_e exists and is character special.
- ----dddd _f_i_l_e
- True if _f_i_l_e exists and is a directory.
- ----eeee _f_i_l_e
- True if _f_i_l_e exists
- ----ffff _f_i_l_e
- True if _f_i_l_e exists and is a regular file.
- ----gggg _f_i_l_e
- True if _f_i_l_e exists and is set-group-id.
- ----kkkk _f_i_l_e
- True if _f_i_l_e has its ``sticky'' bit set.
- ----LLLL _f_i_l_e
- True if _f_i_l_e exists and is a symbolic link.
- ----pppp _f_i_l_e
- True if _f_i_l_e exists and is a named pipe.
- ----rrrr _f_i_l_e
- True if _f_i_l_e exists and is readable.
- ----ssss _f_i_l_e
- True if _f_i_l_e exists and has a size greater than zero.
- ----SSSS _f_i_l_e
- True if _f_i_l_e exists and is a socket.
- ----tttt [[[[_f_d]]]]
- True if _f_d is opened on a terminal. If _f_d is omitted,
- it defaults to 1 (standard output).
- ----uuuu _f_i_l_e
- True if _f_i_l_e exists and its set-user-id bit is set.
- ----wwww _f_i_l_e
-
-
-
- Page 1 (printed 5/18/98)
-
-
-
-
-
-
- TTTTEEEESSSSTTTT((((1111)))) FFFFSSSSFFFF ((((GGGGNNNNUUUU SSSShhhheeeellllllll UUUUttttiiiilllliiiittttiiiieeeessss)))) TTTTEEEESSSSTTTT((((1111))))
-
-
-
- True if _f_i_l_e exists and is writable.
- ----xxxx _f_i_l_e
- True if _f_i_l_e exists and is executable.
- ----OOOO _f_i_l_e
- True if _f_i_l_e exists and is owned by the effective user
- id.
- ----GGGG _f_i_l_e
- True if _f_i_l_e exists and is owned by the effective group
- id.
- _f_i_l_e_1 -nnnntttt _f_i_l_e_2
- True if _f_i_l_e_1 is newer (according to modification date)
- than _f_i_l_e_2.
- _f_i_l_e_1 -ooootttt _f_i_l_e_2
- True if _f_i_l_e_1 is older than file2.
- _f_i_l_e_1 ----eeeeffff _f_i_l_e_2
- True if _f_i_l_e_1 and _f_i_l_e_2 have the same device and inode
- numbers.
- ----zzzz _s_t_r_i_n_g
- True if the length of _s_t_r_i_n_g is zero.
- ----nnnn _s_t_r_i_n_g
- _s_t_r_i_n_g
- True if the length of _s_t_r_i_n_g is non-zero.
- _s_t_r_i_n_g_1 ==== _s_t_r_i_n_g_2
- True if the strings are equal.
- _s_t_r_i_n_g_1 !!!!==== _s_t_r_i_n_g_2
- True if the strings are not equal.
- !!!! _e_x_p_r
- True if _e_x_p_r is false.
- _e_x_p_r_1 -aaaa _e_x_p_r_2
- True if both _e_x_p_r_1 and _e_x_p_r_2 are true.
- _e_x_p_r_1 -oooo _e_x_p_r_2
- True if either _e_x_p_r_1 or _e_x_p_r_2 is true.
- _a_r_g_1 OOOOPPPP _a_r_g_2
- OOOOPPPP is one of ----eeeeqqqq, ----nnnneeee, ----lllltttt, ----lllleeee, ----ggggtttt, or ----ggggeeee. These
- arithmetic binary operators return true if _a_r_g_1 is
- equal, not-equal, less-than, less-than-or-equal,
- greater-than, or greater-than-or-equal than _a_r_g_2,
- respectively. _a_r_g_1 and _a_r_g_2 may be positive integers,
- negative integers, or the special expression ----llll _s_t_r_i_n_g,
- which evaluates to the length of _s_t_r_i_n_g.
- OOOOPPPPTTTTIIIIOOOONNNNSSSS
- When GNU tttteeeesssstttt is invoked with exactly one argument, the
- following options are recognized:
- --_h_e_l_p
- Print a usage message on standard output and exit
- successfully.
- --_v_e_r_s_i_o_n
- Print version information on standard output then exit
- successfully.
-
-
-
-
-
-
- Page 2 (printed 5/18/98)
-
-
-
-